package com.xinxin.blockchain.service;

import com.xinxin.blockchain.dao.ISystemConfigDao;
import com.xinxin.blockchain.enums.ConfigTypeEnum;
import com.xinxin.blockchain.model.SystemConfig;

import java.util.List;

/**
 * @author ys
 * @date 2021/6/8
 */
public interface ISystemConfigService extends ISystemConfigDao {

    SystemConfig getConfig(ConfigTypeEnum type, String key);

    SystemConfig getConfigCacheable(ConfigTypeEnum type, String key);

    List<SystemConfig> listConfig(ConfigTypeEnum type, String key);

    List<SystemConfig> listConfigCacheable(ConfigTypeEnum type, String key);
}
